package com.nchu.controller;

import com.nchu.entity.TbSpecificationOption;
import com.nchu.service.TbSpecificationOptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/specificationOption")
public class TbSpecificationOptionController {
    @Autowired
    private TbSpecificationOptionService tbSpecificationOptionService;
    @GetMapping("/list")
    public List<TbSpecificationOption> findSpecificationOption(){
        return tbSpecificationOptionService.findSpecificationOption();
    }

}
